using UnityEngine;
using System.Collections;

public class ShowStatue : MonoBehaviour {
	
	public GameObject bar;
	public UISprite status;
	
	float originalLength;
	Transform barTrans;
	
	void Awake(){
		originalLength = bar.transform.localScale.x;
		barTrans = bar.transform;
	}
	
	// Update is called once per frame
	void Update () {
		if(barTrans.localScale.x >= originalLength - 1){
			status.enabled = true;
		} else {
			status.enabled = false;
		}
	}
}
